package com.tuling.spring;

import com.tuling.DemoServiceImpl;
import com.tuling.IDemoService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class EnableTransactionManagementDemo {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DemoServiceImpl.class, MineTransactionManager.class);
		IDemoService demoService = context.getBean(IDemoService.class);
		demoService.test();
	}
}
